/*
*  Copyright 2019-2025 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.bailian.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.sql.Timestamp;

/**
* @description /
* @author Yaco
* @date 2025-03-17
**/
@Data
@TableName("eos_system_function_description")
public class EosSystemFunctionDescription implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Integer id;

    @ApiModelProperty(value = "业务空间ID")
    private String businessSpaceId;

    @ApiModelProperty(value = "类目ID")
    private String categoryId;

    @ApiModelProperty(value = "处理状态")
    private String processState;

    @ApiModelProperty(value = "文件类型")
    private String fileType;

    @ApiModelProperty(value = "文件行索引")
    private Integer fileIndex;

    @ApiModelProperty(value = "文档版本号")
    private Integer fileVersion;

    @ApiModelProperty(value = "审核状态")
    private String approvalStatus;

    @ApiModelProperty(value = "审核备注")
    private String approvalDesc;

    @ApiModelProperty(value = "经办人")
    private Long operatorUserId;

    @ApiModelProperty(value = "审核人")
    private Long approvalUserId;

//    @Alias(value = "标签1")
    @NotBlank
    @ApiModelProperty(value = "标签1")
    private String tag1;

//    @Alias(value = "标签2")
    @NotBlank
    @ApiModelProperty(value = "标签2")
    private String tag2;

//    @Alias(value = "标签3")
    @NotBlank
    @ApiModelProperty(value = "标签3")
    private String tag3;

//    @Alias(value = "知识主题")
    @NotBlank
    @ApiModelProperty(value = "知识主题")
    private String knowledgeTopic;

//    @Alias(value = "知识切片")
    @NotBlank
    @ApiModelProperty(value = "知识切片(初始版)")
    private String knowledgeSliceInitial;

//    @Alias(value = "知识切片")
    @ApiModelProperty(value = "知识切片(最终版)")
    private String knowledgeSliceFinal;

//    @Alias(value = "相关元数据：图片")
    @ApiModelProperty(value = "图片")
    private String metadataImage;

//    @Alias(value = "相关元数据：响应方式")
    @ApiModelProperty(value = "响应方式")
    private String metadataResponseMethod;

//    @Alias(value = "相关元数据：槽位依赖")
    @ApiModelProperty(value = "槽位依赖")
    private String metadataSlotDependency;

//    @Alias(value = "相关元数据：调用工具")
    @ApiModelProperty(value = "调用工具")
    private String metadataToolInvocation;


    @ApiModelProperty(value = "记录创建时间")
    private Timestamp createdAt;

    @ApiModelProperty(value = "记录修改时间")
    private Timestamp updatedAt;

    @ApiModelProperty(value = "记录状态 (0: 不可用, 1: 可用)")
    private Integer recordStatus;

    @TableField(exist = false)
    @ApiModelProperty(value = "操作码: approve审核")
    private String optCodes;

    public void copy(EosSystemFunctionDescription source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
